package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoPrintingType;
import com.muyu.danmo.mapper.DanmoPrintingTypeMapper;
import com.muyu.danmo.service.IDanmoPrintingTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 印刷出版类型Service业务层处理
 * 
 * @author yangle
 * @date 2024-11-28
 */
@Service
public class DanmoPrintingTypeServiceImpl implements IDanmoPrintingTypeService
{
    @Autowired
    private DanmoPrintingTypeMapper danmoPrintingTypeMapper;

    /**
     * 查询印刷出版类型
     * 
     * @param id 印刷出版类型主键
     * @return 印刷出版类型
     */
    @Override
    public DanmoPrintingType selectDanmoPrintingTypeById(Long id)
    {
        return danmoPrintingTypeMapper.selectDanmoPrintingTypeById(id);
    }

    /**
     * 查询印刷出版类型列表
     * 
     * @param danmoPrintingType 印刷出版类型
     * @return 印刷出版类型
     */
    @Override
    public List<DanmoPrintingType> selectDanmoPrintingTypeList(DanmoPrintingType danmoPrintingType)
    {
        return danmoPrintingTypeMapper.selectDanmoPrintingTypeList(danmoPrintingType);
    }

    /**
     * 新增印刷出版类型
     * 
     * @param danmoPrintingType 印刷出版类型
     * @return 结果
     */
    @Override
    public int insertDanmoPrintingType(DanmoPrintingType danmoPrintingType)
    {
        return danmoPrintingTypeMapper.insertDanmoPrintingType(danmoPrintingType);
    }

    /**
     * 修改印刷出版类型
     * 
     * @param danmoPrintingType 印刷出版类型
     * @return 结果
     */
    @Override
    public int updateDanmoPrintingType(DanmoPrintingType danmoPrintingType)
    {
        return danmoPrintingTypeMapper.updateDanmoPrintingType(danmoPrintingType);
    }

    /**
     * 批量删除印刷出版类型
     * 
     * @param ids 需要删除的印刷出版类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingTypeByIds(Long[] ids)
    {
        return danmoPrintingTypeMapper.deleteDanmoPrintingTypeByIds(ids);
    }

    /**
     * 删除印刷出版类型信息
     * 
     * @param id 印刷出版类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingTypeById(Long id)
    {
        return danmoPrintingTypeMapper.deleteDanmoPrintingTypeById(id);
    }
}
